From c10784ece29c13f91517ef016b1b9d281dd4a2a7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20H=C3=A4rdeman?= Date: Fri, 17 Oct 2025 13:43:17 +0200 Subject: [PATCH] dhcpv4: replace ToS precedence MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit The IPTOS_PREC_* values are deprecated since RFC2474 §4.2.2.1 (Dec 1998) replaced them with class selector codepoints. Signed-off-by: David Härdeman Link: https://github.com/openwrt/odhcpd/pull/318 Signed-off-by: Álvaro Fernández Rojas --- src/dhcpv4.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dhcpv4.c b/src/dhcpv4.c index 9ab7869..3f41188 100644 --- a/src/dhcpv4.c +++ b/src/dhcpv4.c @@ -1488,7 +1488,7 @@ int dhcpv4_setup_interface(struct interface *iface, bool enable) goto out; } - val = IPTOS_PREC_INTERNETCONTROL; + val = IPTOS_CLASS_CS6; if (setsockopt(iface->dhcpv4_event.uloop.fd, IPPROTO_IP, IP_TOS, &val, sizeof(val)) < 0) { error("setsockopt(IP_TOS): %m"); -- 2.30.2